package models.mappers;

import java.util.Date;
import java.util.List;
import java.util.Map;

import models.BackCount;
import models.DeviceHealth;
import models.User;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;
import org.apache.ibatis.annotations.Update;

import vos.BackCountSearchVo;
import vos.BackCountSubSearchVo;
import vos.BackCountVo;
import vos.BackInfoVo;
import vos.DeviceHealthSearchVo;
import vos.DeviceHealthVo;
import vos.DeviceSickSearchVo;
import vos.UserInfoSearchVo;

/**
 * 设备健康
 * 
 * @ClassName: DeviceHealthMapper 
 * @author: wangsm
 * @date: 2016年6月8日 下午2:00:53
 */
public interface DeviceHealthMapper {
	/**
	 * 获取统计记录
	 *
	 * @Title: listDeviceHealth 
	 * @param vo
	 * @return
	 * @return: List<BackInfoVo>
	 */
	List<BackInfoVo> listDeviceHealth(DeviceHealthSearchVo vo);
	/**
	 * 获取统计列表
	 *
	 * @Title: countDeviceHealth 
	 * @param vo
	 * @return
	 * @return: long
	 */
	long countDeviceHealth(DeviceHealthSearchVo vo);
	/**
	 * 批量保存不健康记录
	 *
	 * @Title: save 
	 * @param healths
	 * @return
	 * @return: Object
	 */
	void saveModel(Map<String,Object> map);
	/**
	 * 获取不健康记录总数
	 *
	 * @Title: countDeviceSick 
	 * @param vo
	 * @return
	 * @return: long
	 */
	long countDeviceSick(DeviceSickSearchVo vo);
	/**
	 * 获取不健康记录表
	 *
	 * @Title: listDeviceSick 
	 * @param vo
	 * @return
	 * @return: List<DeviceHealthVo>
	 */
	List<DeviceHealthVo> listDeviceSick(DeviceSickSearchVo vo);
	/**
	 * 导出设备不健康列表
	 *
	 * @Title: exportSickXls 
	 * @param vo
	 * @return
	 * @return: List<DeviceHealthVo>
	 */
	List<DeviceHealthVo> exportSickXls(DeviceSickSearchVo vo);
}
